#include <buola/gl/ctexturesurface.h>
#include <buola/image/cpicture.h>

namespace buola { namespace gl {

CTextureSurface::CTextureSurface(const img::CAnyImage &pImage)
    :   mSize(pImage.Size())
{
    mTexture.Create2D(pImage);
}

CTextureSurface::~CTextureSurface()
{
    
}

int CTextureSurface::Depth()
{
    return 24;
}

CSize_i CTextureSurface::SurfaceSize()
{
    return mSize;
}

void CTextureSurface::BitBlt(const CPoint_d&,const CSize_d&,img::CSurface*,const CPoint_d&,bool)
{
    msg_warn() << "not implemented CTextureSurface::BitBlt\n";
}

/*namespace gl*/ } /*namespace buola*/ }
